<template>
  <div>
    <router-view class="all-container"/>
  </div>
</template>

<script>


export default {
  name: 'App',
  data(){
    return{
      cityData:[],
    }
  },
  methods:{

  },
  mounted() {
    /*let that = this;
    axios.post('http://localhost:1073/twin-analyse-1083/sscloud/tmpFuc',null).then((response)=>{
      for (const item of response.data) {
        if (item.dataid<100000){
          AMapLoader.load({
            key: "dd2617cca23d86965b37a281144bfa49", // 申请好的Web端开发者Key，首次调用 load 时必填
            version: "2.0", // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
            plugins: [], // 需要使用的的插件列表，如比例尺'AMap.Scale'等
          })
              .then((AMap) => {
                AMap.plugin(["AMap.PlaceSearch"], function() {
                  var keywords = item.name;
                  var autoOptions = {
                    city: item.cityName,
                    extensions: 'all',
                  }
                  var placeSearch = new AMap.PlaceSearch(autoOptions);
                  placeSearch.search(keywords,
                      function (status, result){
                        console.log(result)
                        if (status === 'complete'){
                          console.log(result.poiList.pois[0]);
                          item.lng = result.poiList.pois[0].location.lng;
                          item.lat = result.poiList.pois[0].location.lat;
                          that.cityData.push(item);
                        }
                      }
                  )
                });
              })
        }
      }
    })*/
  }

}
</script>

<style>
.all-container{
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
*{
  padding: 0;
  margin: 0;
  letter-spacing: 1px;
}
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar
{
  width: 6px;
  height: 6px;
  background-color: #F5F5F5;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track
{
  border-radius: 4px;
  background-color: #F5F5F5;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
  border-radius: 4px;
  background-color: #d3dcee;
}

.scroll-x{
  overflow-x: scroll;
  white-space: nowrap;
}

</style>
